#ifndef __BSP_MUP6050_H
#define __BSP_MUP6050_H

#include "../../imx6ul/imx6ul.h"
#include "../gpio/bsp_gpio.h"
#include "../i2c/bsp_i2c.h"
#include "bsp_mpu6050_reg.h"

#define MPU6050_ADDRESS 0x68  // MPU6050的I2C从机地址

void mpu6050_init();
unsigned char MPU6050_ReadReg(unsigned char reg);
unsigned char MPU6050_WriteReg(unsigned char reg, unsigned char data);
uint8_t MPU6050_GetID(void);
void MPU6050_GetData(int16_t *AccX, int16_t *AccY, int16_t *AccZ,
                     int16_t *GyroX, int16_t *GyroY, int16_t *GyroZ);

#endif